<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
  <caption>用户列表</caption>
  <tr>
    <th>用户名</th><th>密码</th><th>昵称</th>
  </tr>
</table>
<script>
  let table=document.querySelector("table");
  let arr=[{name:"张三",password:"000613",nickname:"和"},
    {name:"李四",password:"000613",nickname:"233"},
    {name:"王五",password:"000613",nickname:"233"},
  ]
  for (let p of arr) {
    let tr=document.createElement("tr");
    let nameTd=document.createElement("td");
    let passwordTd=document.createElement("td");
    let nicknameTd=document.createElement("td");
    nameTd.innerText=p.name;
    passwordTd.innerText=p.password;
    nicknameTd.innerText=p.nickname;
    tr.append(nameTd,passwordTd,nicknameTd);
    table.append(tr);
  }
</script>
</body>
</html>